Added automatic checks for C++11 flags.