gzFile wasn't used currently. Trying to build rpm2pkg on zlib 1.27 exposed the misuse. rpm2pkg should build on all version of zlib now.