Fix for #888: configure the buffer size as well