[CMake] MSVC is incorrectly emitting C4239 in some cases. Disable it.