gzip support
added support for using gzip compression when available