Fixes: #27318
Issue: #27318
Expose more options for compiler configuration as well as adding unit test
Compilation is complicated. Caching / distribution is even more complicated. Sometimes there are bugs (in compilers as well as in FASTBuild), so export the option to disable those features for CMake targets.