Fix possibly invalid use of zlib macro outside of zlib