fixing warnings on windows