Added cmake support (using makefile generation similar to czmq).