Revert "Obtain M_PI by defining _USE_MATH_DEFINES"

This reverts commit 48cdcdb8b29bc8629590c0c6b31c6e0b08e1e3c3.
Rename pi constant to avoid conflict with POSIX