Use ${ZLIB_LIBRARY} instead of 'z' when linking against libz. From Patrick Spendrin. --HG-- branch : HEAD