MFH: r542173
Honor $YACC and fix build with recent byacc on head after r363170.
PR: 247522
Approved by: ports-secteam (blanket, build fix)