Fix fread issues on Windows.