Changed class visibility to avoid an MSVC DLL build problem.