Replace custom PI with G_PI