add missing msg->init for ROUTER_RAW with empty message
test zmq_msg_close after sending empty message on ROUTER_RAW
Fix test warning.
Fix test warning.
Fix race condition on shutdown
Merge pull request #31 from hintjens/master

Backported fixes for libzmq-39 and other patches.