CMakeLists.txt: Append common flags to CMake debug/release flags.

This is needed for e.g. -GR- -EHsc.