When configuring Qt 5 it is possible that moc will have a different Version then the Qt includes.
This can happen if the PKG_CONFIG_PATH is not set to include the Qt pkg config files, but the PATH includes a moc of a newer version.
That mismatch is currently not detected and can result in build errors.