clean up cmakefile, fix MSVC compilation