Use CheckForPthreads.cxx to find pthreads library on Ubuntu.