My own implementation of the pthreads library