move pthread types out of per-arch alltypes.h