Use CMake to do os-detection and option setting