Added the fixed (mostly) pthread_create stuff