Fix compilation on windows
Fix M_PI redefinition warning on windows