Use the C++-version of membuffer. This fixes two memory leaks: report_info() on every(!) invocation and report_error() before the error callback is set. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>