Add option to fix the ring buffer size at compile time (on by default),
so that the memory for the buffer doesn't have to come from the heap.