Fixed compiling CMake project under MSVC.