added g++ compiler flag "-std=c++11"