Port library to the new n-t-zmq API.