Add minimal CMake support.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>