Use the correct moc/rcc depending on the Qt version used.

There is a bug: If the project use both Qts, Qt5 version will be used even on Qt4 projects.
This problem is fixable, but I think this kind of problem doesn't happen in real life, so let it go :-).