Link against pthreads.