AP_PerfMon: fixes to make it work under AP_HAL (almost)