qimage/configure: Fix Qt4 detection