Added check for libz.
Forgot to add the zlib script.