Cmake: MSVC support

add MSVC support to CMake.