Use cmath.h to get M_PI on Windows.