Fixes libz linking issue.