This allows setting the compression level used by zlib. Signed-off-by: James Almer <jamrial@gmail.com>