Fix warnings on windows.