Build AR2GEMS with CMake

The build is now managed by CMake. Tested on Linux.