Apparently on AIX when using gcc you need to call pthread_init()
(which is not a POSIX threads call!).  Reported and confirmed by Brad
Howes.
diff --git a/Python/thread_pthread.h b/Python/thread_pthread.h
index 995ef51..24f8f4e 100644
--- a/Python/thread_pthread.h
+++ b/Python/thread_pthread.h
@@ -120,6 +120,9 @@
  */
 static void _init_thread _P0()
 {
+#if defined(_AIX) && defined(__GNUC__)
+	pthread_init();
+#endif
 }
 
 /*