Fix build failures until VS 2013

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