pthread_create is working now