Add -DHASGZ to the cppflags to indicate we have zlib.
Allow gzlib to be configurable.