In compress_buffer(), let zlib figure out the proper length for the new buffer