removed the references to lpthread