libthreads: cleanup main thread initialization
-rw-r--r-- 72 .gitignore
-rw-r--r-- 184 Makefile
-rw-r--r-- 1969 libthreads.c
-rw-r--r-- 432 libthreads.h