Switch to CMake. Allows faster compilation. Small Makefile cleanups. Signed-off-by: Rosen Penev <rosenp@gmail.com>