Switch build to CMake