zlib may be installed under the libzlibstatic.a or libzlib.dll.so names. xapian correctly detect those name but use '-lz' option for xapian_inspec binary.