FLUME-2416: Use CodecPool in compressed stream to prevent leak of direct buffers

(Hari Shreedharan via Jarek Jarcec Cecho)
Merge remote-tracking branch 'remotes/origin/trunk' into trunk