Link against pthread.