Set link_id to lowest id

07:  Set link_id to lowest id of group.  This code was added to be
consistent with code of HCV, but it may not matter much since source
files are compiled before numbering.   Therefore, link_ids will change
from year to year
08:  Fix race variable cleaning