turned on C++11 support for some project files, fixed compilation errors
linux compiler does not think that M_PI does not exist
moved pi to math.h
Merge pull request #1124 from qreal/c++11

C++11
after review changers (1)
Merge branch 'master' of https://github.com/qreal/qreal into uxInfo
after review changes (2)