backport fix d7c8021 of issue https://github.com/zeromq/zeromq4-x/issues/29.
uh, type "uint" unknown here, using size_t instead.