fix segfault with lenny libc6 by linking to pthreads version