Patch for the problem can be found at: <http://www.melnikov.ca/mel/openldap_windows_io_read.2.2.27.diff.txt>