Moved back to C and standard POSIX threads