M_PI not defined on win32 (and possibly other platforms)