Attempt to fix static references in config classes

I made no attempt to test this, I just had some extra time on my hands
and decided to fix up the syntax errors. It may or may not work.
Merge pull request #60 from ron975/config-rewrite

Attempt to fix static references in config classes