add missing Math_min definition