Ensure that the path to moc is valid before building with Qt 5.

On Arch and Fedora, the path is broken for Qt versions prior to Qt 5.0.2.
Merge topic 'workaround-usr-move-qt5' into next

240201b Ensure that the path to moc is valid before building with Qt 5.