Add ifdefs for QC-specific custom buffer size feature

Change-Id: I317fa6fea1bb607858adbf4dd206d383ff9ca717