Work around GCC bug 29365 unnamed namespace issues