Adds manual linkage to pthreads on Linux.