Fix compilation on WIN32

Change-Id: I3e320969e882530c7a9aa42b5ba7287f75cbc622
Reviewed-on: http://review.couchbase.org/31571
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>