qimage/configure: fix build on OS X