Fix build issues on windows.