Differentiate between internal and external flags.

Dependents use external flags, whereas building components and test drivers use
both internal and external flags.