Fix warnings on windows