The attached fixes the problem. It seems all other uses of M_PI have added the same code to the .c file rather than any header file, perhaps a better patch would fix up all 3 of these locations and stick that code in a header file, but I don't really know where at the moment. This at least should get the build running again.