MB-7993: Fix link order for windows

Change-Id: I52d219dc9ba4dbf3dd45d4ebf610b171285cca26
Reviewed-on: http://review.couchbase.org/25419
Reviewed-by: Philip Labee <philip@couchbase.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>