Added small library for shared buffer handling.