Added custom stream buffer to capture std::cout and similar.