Fixed --debug builds on Windows.

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