Added non-preemptive pthreads support.