fixed cmake and msvc build