Use G_PI instead of M_PI. Could also have defined _USE_MATH_DEFINES or included gst/math-compat.h but this seems simplest.