Add receive buffer method and fix bugs about checking return value

1. Fix bugs about checking return value of zmq_sendmsg and zmq_recvmsg for ZeroMQ 3.2.4
2. Add receive buffer method support in ZMQSocket