Improve build on windows.