Low-level wrapper around the zlib library