Now always opening files in binary mode on Windows.
Fixed Windows build.