Fix QT4 moc, cflags libs detection on dual QT3/Qt4 systems