Build automatically expanding buffers from struct buffer and erealloc().