PCBC-241: Fix compile warnings

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