win32 fixes

make the project compile on win32, and make all tests pass
add file header