Fix windows build failures

Change-Id: Ib4d5cd9131911a71d534ed7ff8dcfa13b0c90f41
Reviewed-on: http://review.couchbase.org/37602
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>