Add M_PI definition to FPGAThread for Windows only