added changes for inclusion of zlib