HPCC-12192 Fix problems building esdlcomp on windows

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

HPCC-12192 Fix problems building esdlcomp on windows

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>