HPCC-12282 Fix link errors on windows.

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Merge pull request #6535 from ghalliday/issue12282b

HPCC-12282 Fix link errors on windows.

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>