Switch back to using CMake for the R package.