I see you take the latest and greatest from zlib; and there may well be good technical reasons for doing so.

Just be aware that the single most painfully common dependency of all this business is possibly zlib;
if you intend to mix'n'match this module, as dependency, with other bits, just be aware. Reviewed.