Fix ZeroMQ 2.x compatibility.
Merge pull request #234 from ok2/master

Fix compatibility to ZeroMQ 2.x