AP_Math: port examples to Linux