176 Implemented a buffered stream abstraction for mexPrintf
cf. also jaeandersson/swig#7