Give internal classes hidden visibility.

Worth 100k on a linux/x86_64 Release+Asserts clang.