Ninja: Prevent compilers to be silently modified

Unlike with Unix Makefiles generator modifying compiler paths was not
protected with Ninja generator.  It was possible to modify them in the
cache without the expected effect on the generated solution.  Also
activate corresponding tests with Ninja.
Merge topic 'ninja-compiler-change' into next

6120fca8 Ninja: Prevent compilers to be silently modified