HPCC-11281 Fix OSX compile issues with file caching

Added #ifndef _WIN32 to be consistent with jfile

Signed-off-by: Mark Kelly <mark.kelly@lexisnexis.com>