Turned on C++11

-It mostly required only adding M_PI constant to files.