fixes libz dependency for some of the libraries