Fixup some build failures/warnings on win32

Change-Id: I21729495dc864f1737b7999aca1eabb143bad5c7
Reviewed-on: http://review.couchbase.org/32984
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>