Fixed chat example

- Fixes #162
- CZMQ API for printf calls changed for security reasons