Add macro to do compile time checks on the ringbuf buffer sizes.