fix pthread reference