Fixups for external HAVE_GZIP & HAVE_CURL as well as cleaning flags