Use cmake style define. Fix big endian issue on dual OS (eg. Tiger)