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
Merge branch 'master' of github.com:qreal/qreal into startTab
Modifications in recent projects behaviour