Added safeguard against "M_PI" C89 and C99

Backward Compatibility with C89 standard and C99 and greater standard