Change build process to use CMake