Changed name of pi constant from M_PI to PI. This is a problem because M_PI is defined in math package on Linux but no Windows