global_flags structure moved to separate header