Better support for configure detection of missing types, added check
for ssize_t.
Removed a couple of no longer used portability functions.
Various portability fixes in port.h.

diff --git a/scheduler/pthread.c b/scheduler/pthread.c
index 404f562..0dd7330 100644
--- a/scheduler/pthread.c
+++ b/scheduler/pthread.c
@@ -22,6 +22,8 @@
  */
 
 #include "config.h"
+#include "wine/port.h"
+
 #define _GNU_SOURCE /* we may need to override some GNU extensions */
 
 #include <assert.h>