MB-9310: Build with MSVC

Change-Id: Id4e0275d771e849dcbfc21d52140dc4de33396c5
Reviewed-on: http://review.couchbase.org/30390
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Volker Mische <volker.mische@gmail.com>