Fix detection of <math>.