Fix ZeroMQ 2.x compatibility.