Added C++11 flag if compiler is g++