Fixed enable_hil.
Added mode flag set function to mavutil.