Use -std=gnu++0x so we have M_PI and friends defined.