Enabled C++11 in gcc
Fix flag name in gcc 4.6 and earlier
Merge pull request #1520 from mc-server/c++11switch

Enabled C++11 in gcc