Reverted previous commit and applied a correct fix
Removed MSVC math defines hack and define M_PI if necessary, since it's not really to ANSI spec anyway