Add cmake-based build system

Much more convenient than mucking around with makefiles.