Build pthreads statically.