Fixes Issue 6057 - Nested enum declaration causes linker errors due to missing sections in obj file.