Allow compilation with clang++

Change-Id: Ie622380456cfcb51615bdb5eea1be04b12383d3a
Reviewed-on: http://review.couchbase.org/29723
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>