GCS_MAVLink: fix compiler error