HPCC-12029 Optimize crc_file, updated to fix Centos 5.7 and OSX build er...

re-opened and new commit to fix Centos 5.7 and OSX build issues.

Signed-off-by: Mark Kelly <mark.kelly@lexisnexis.com>
There's a function in jmisc.hpp that replicates this functionality