Switch from memorybuffers to stream-buffers as the former had issues on Ubuntu