Reconstruction of cmake

Now cmake will generate multiple executable target
Merge branch 'develop' of https://github.com/amyangfei/dzmq into develop
Minor update of macros