Move build to CMake