Modify some macros, make them works on xcode.