Added M_PI so that it builds on M$