HPCC-8692 Fix OSX build issues

Mostly related to location of template instantiation.

Signed-off-by: Anthony Fishbeck <Anthony.Fishbeck@lexisnexis.com>