loader: Use the Mach thread port as thread id on Mac OS.
diff --git a/configure b/configure
index a1e7660..a68d2d1 100755
--- a/configure
+++ b/configure
@@ -7028,6 +7028,7 @@
 
 
 
+
 for ac_header in \
 	AudioUnit/AudioUnit.h \
 	Carbon/Carbon.h \
@@ -7067,6 +7068,7 @@
 	linux/param.h \
 	linux/serial.h \
 	linux/ucdrom.h \
+	mach/mach.h \
 	mach/machine.h \
 	machine/cpu.h \
 	machine/limits.h \