Update main header file and configure.ac to check for pthreads.