rdb_compat: added automatic gzip decompression