Low-level interface to zlib