change extern to namespace to get around clang bug.
Merge pull request #191 from Astron/feature/clang-fix-dcclass

change extern to namespace to get around clang bug.