Replace "generic makefile" build with CMake build