Move some headers into a config directory to avoid CUSTOM_COMMANDs in CMakeLists.txt.