Fixes for deprecated libcouchbase functions