C++ cleanups to allow building with Clang.
Add StreamBuffer support for string input.