Access zlib compression and decompression from swift