gen_cpio: Add support for gzip compression