Cmake: separate config.h generation into its own module

make it so Xcode uses this to generate config.h.
Xcode: iOS build needs to generate config.h also