Help configure find the correct moc, as the comment in m4/qt.m4 states:
#configure tried to run $ac_cv_path_moc and the test didn't
#succeed. If configure shouldn't have tried this one, set
#the environment variable MOC to the right one before running
#configure.