Only import zmq if we need to