Fix compile issues on windows.