add POSIX Threads support