updated for libzmq version 3