ffi-rzmq and some fixes by minrk