config: add init_targets proc that is executed just before init