convert compression option to boolean type

Change-Id: I46eb16bba1ab442dd0a733c5ec987825cc876149
Reviewed-on: http://review.couchbase.org/36746
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Li Yang <lichenyang2@gmail.com>