Issue/rebuild too often

Correctly determine if compiler settings were changed through the UI.

Also
- make sure the dialog prompt to clean all projects appears only when settings were really changed.
- removed the last use (and definition) of `object Trim`

Fix #1002075