Fixed compilation in MSVC through CMake.