Remove compile warnings

Change-Id: I8e27bb861e72586db9a9e55aa50c6535ad5084f2
Reviewed-on: http://review.couchbase.org/43642
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>