[Core] CMake: Create config.h for windows only when needed [c2069]

Also, don't use a prepared file but instead just generate it.

This has no effect for Visual Studio, as we still have our hack in place
in the ACE sources which directly include config-win32.h

Signed-off-by: Daniel S. Reichenbach <daniel@kogitoapp.com>