I'm about to crash, but apparently there are several levels of compliance with various standards available with the OS X/Darwin compiler.
It may be as simple as -D SOME_IDIOTIC_VERSION_COMPATIBILITY_THING when compiling on OS X but I'm far out of my current knowledge zone here.
Maybe welltall(And) knows?
I know he hates the current OS X toolchain, but it is what it is...unless I can get specific instructions/clues as to what to replace/add, that's what I've got...
S