conditional #define M_PI

M_PI seems to be an optional extension to math.h.
Reported as mypaint/mypaint#53