store_ext.c: added endianness macros for macosx