CMake precompiled header config refactoring

Precompiled heades modules for CMake modified to be more readable and automatically generate correct pch for gcc and msvc (without garbage projects in msvc).