Move gcc c++11 support check to external file