Added checks to disable certain functions if on an Apple device

It seems that int64_t is the same as PointerAddress on Apple machines
CLIPSObjectBuilder.cpp: Added preprocessor checks for Apple platforms
Added checks to tool makefiles for OSX
OS detection is now properly carried out for durandal and libindirecttest