Fixed warnings on windows