Link with pthread.