All preprocessor definitions of PI removed and replaced it with M_PI.