Fix extraneous packages not containing the linked flag even if they are linked.