Fixed: M_PI_2 is not available on all platforms