Add Autoconf macro to check for C++11 thread class in <thread>.