more pthread_t pid_t fixes