Fixed warnings on windows under MSVC