Remove compiler warnings

Change-Id: Ieba9e5ffee28e669604503d51e877159370ed23a
Reviewed-on: http://review.couchbase.org/32426
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>