Replacing autotools with CMake