Most non-deprecation MSVC warnings fixed