Fixed some build warnings on windows