autotools: fix CXX11_REQUIRE_STD_END to report an error on failure