Problem: does not build or pass on libzmq v2.2

Fixed various compile issues and used old IPC filenames to make
this work with libzmq v2.2.
Merge pull request #508 from hintjens/master

Problem: does not build or pass on libzmq v2.2