Added checking of zlib.