fix pthread examples