Added M_PI def for those who don't have it
added M_PI def