Use system zlib when running cmake more than once.

On linux, when running cmake to configure libgit2
zlib is detected correctly on the first run.
However, on subsequent runs since the ZLIB_LIBRARY
varible is set cmake prints the following error and
falls back to using the bundled zlib.

zlib was not found; using bundled 3rd-party sources.