Apparently in httpclient4,
BufferOutputStream is not longer
castable to a DeflaterOutputStream.
Fortunately, the underlying DeflaterOutputStream
is still available to use.