Hunt down pthread instead of just assuming that we'll find it.