Fix to the compile warnings.

Change-Id: I8c34fbf0b0a1ac2c80286da0653569a16209777d
Reviewed-on: http://review.couchbase.org/30675
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Chiyoung Seo <chiyoung@couchbase.com>