Initialize zlib data structure before calling deflateInit2