Fix linking to zlib library if ZLIB_FOUND is set