Fixed warning on platforms where M_PI is available.