use -std=gnu++11 instead of -std=c++11