Issue 6057 - Nested enum declaration causes linker errors

http://d.puremagic.com/issues/show_bug.cgi?id=6057

It seems like a simple fix, but I'm no back-end expert.