A better way to check if C++11 is supported

See: https://github.com/arduino/Arduino/pull/2175