configure: Fix mach-o/dyld_images.h detection on OS X.
diff --git a/configure.ac b/configure.ac
index 5fc708e..258a864 100644
--- a/configure.ac
+++ b/configure.ac
@@ -309,7 +309,6 @@
 	linux/serial.h \
 	linux/types.h \
 	linux/ucdrom.h \
-	mach-o/dyld_images.h \
 	mach-o/nlist.h \
 	mach/mach.h \
 	mach/machine.h \
@@ -336,6 +335,7 @@
 	scsi/scsi_ioctl.h \
 	scsi/sg.h \
 	soundcard.h \
+	stdbool.h \
 	stdint.h \
 	strings.h \
 	stropts.h \
@@ -486,6 +486,14 @@
      # include <linux/types.h>
      #endif])
 
+AC_CHECK_HEADERS([mach-o/dyld_images.h],,,
+    [#ifdef HAVE_STDBOOL_H
+     # include <stdbool.h>
+     #endif
+     #ifdef HAVE_STDINT_H
+     # include <stdint.h>
+     #endif])
+
 AC_CHECK_HEADERS([resolv.h],,,
     [#include <sys/types.h>
      #ifdef HAVE_SYS_SOCKET_H