Fix issue #284

See also https://github.com/zeromq/zproject/pull/65