added autotool check for pthread