Use local definition of pi

M_PI is not in the C11 standard.