Minor refactorings

only build error message when is not an Harmonic project.