Fix compile warnings

Change-Id: I33756e584fdc0620014691b87724f97a06e3ea34
Reviewed-on: http://review.couchbase.org/29948
Reviewed-by: David Liao <david.liao@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>