adding -std=c++11 support