use ZLIBLIBS instead of -lz for LIBMAUSLIBS