change define macros to avoid run error on mac 32 bit