Fix mingw build

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