Move to cmake as the build system

To build, run these commands:

cmake ./
make