Changed C++11 compiler option to work with g++ version 4.6 as well as 4.7 and beyond.