Check for __thread in ./configure.ac