Just use g_configs.unload(config) to unload config files.

Avoids concurrent modification errors.
Fix missing reference for VS project.