Add a compatibility layer for zmq 3