This makes configure faster when C++11 is enabled by avoiding spending time on compiling unnecessary checks in this case.