Added set_mode_flag to mavutil.