Use static linking with the pthread library