fix gp regression for modular interfaces
define M_PI if not available