import DynFlag only in Gap.