Make built-in receive buffer size configurable

The maximum payload length is 65534 bytes. This is much larger than the
maximum message length of many application protocols. Make the built-in
receive buffer size configurable.