[GMR] Add a flag to enable GlobalsModRef in the normal compilation