Fix cmake error in MSVC