Fix handling of -std=c++11 flag.