Fix zlib library loading on Gentoo