configure: Fix mach-o/dyld_images.h detection on OS X.