Added check for zlib