Fix compile warnings

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