Heap-allocate zlib data structure in regress_zlib tests