Fix all warnings on windows