ZMQ API diverges from POSIX

for #1182 
return values of socket functions are size_t (not int) in compliance with POSIX
deprecated API (zmq_msg_recv/zmq_msg_send) still returns int