port decode to libtrace linktype; next: fix include deps, convert yfctx->qfctx