MB-100: Fix compiler warnings

Change-Id: I3a48737e3c8de20f4c26e4ca1721a21fd1dc9513
Reviewed-on: http://review.couchbase.org/26937
Tested-by: Michael Wiederhold <mike@couchbase.com>
Reviewed-by: Jin Lim <jin@couchbase.com>