change the serial buffer size from within a sketch?

This solution is a bit complex, but it's probably the only way to set the buffer size in the sketch code:
http://forum.arduino.cc/index.php?topic=329709.msg2279367#msg2279367