Fix detection of <math>