Remove usage of assert.h and change some M_PI constant stuff due to probably some ANSI problems trying to use the constants from math.h