zlib tool fixes