Fix a few warnings on windows