pthread fix.