Fixed chat example

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

Fixed chat example