fix errors on Windows
Merge pull request #181 from songchengjiang/sync_load

fix errors on Windows