modify some files to build on windows