Added defs.h mechanism to allow default buffer sizes to be overridden