using std=c++11 on gcc