Remove compiler warnings

Change-Id: I29e14502b3e2b533718d353c387d36afb31b090c
Reviewed-on: http://review.couchbase.org/30683
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Volker Mische <volker.mische@gmail.com>