HPCC-12486 Optimize binding module functions

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
HPCC-12513 Clean up various windows warnings

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
HPCC-12513 Changes following code review

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

HPCC-12486 Optimize binding module functions

Reviewed-By: Jamie Noss <james.noss@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Merge pull request #6599 from ghalliday/issue12513

HPCC-12513 Clean up various windows warnings

Reviewed-By: Jake Smith <jake.smith@lexisnexis.com>
Reviewed-By: Jamie Noss <james.noss@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>