Added autoconf checks for __thread compiler support