adapt for zeromq 3.2.4