Be compatible with zmq 3