Fork of Dan Kenigsberg's pthreading project