MSVC warnings fix