Fix CMake build
Fix MSVC error format