AP_HAL: example compile error fix