Fix streambuf method signatures