Fix building with Gentoo's patched zlib.