Fix C99 not having M_PI

This will fix some annoying compile issues on
strictly standards compliant platforms.

(C99 doesn't define M_PI, but OS X gives it to us anyway; doesn't
work so great on Linux.)