Use CMake to build

RHEL5 doesn't provide a new enough autoconf, but it does provide a new
enough CMake.