fix MSVC build r2