Check te value of g++ -dumpmachine if installed

The flag for c++11 is not supported for g++ versions older than 4.7