update configure to test for more flags to enable C++11, and to chicken out if none work.