Fixing warnings on windows