config: add a config_settings_alloc function; main: add config include