Fix use of M_PI for e.g. mingw.