Fix gtest build error when OS=msvc.