Look for moc from Qt4 first

This will make sure that if Qt5 is present, we will still get the MOC
from qt4
Merge branch 'cdat_give_preference_qt4'