Fix #47. Improve ZeroMQ support.