Avoided some MSVC warnings