better handling of zlib dep