qt4: parallel-build impurity fix

Modified to avoid unnecessary rebuilds.