Merge pull request #161 from mditzel/master

Issue #160: added cmake support
Fixed chat example

- Fixes #162
- CZMQ API for printf calls changed for security reasons
Merge pull request #163 from hintjens/master

Fixed chat example
Fix for #162
Merge pull request #164 from mvala/master

Fix for #162