Fixes Issue 6057 - Nested enum declaration causes linker errors due to missing sections in obj file.
Merge pull request #1391 from AndrejMitrovic/Fix6057

Issue 6057 - Nested enum declaration causes linker errors