Add posix thread library.
Did not compile without linking to pthreads on Debian Sid.