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.