Add workaround for isnan isinf for MS VS
Add initial CMake for MS VS