update for Xcode 5

Tweaked the script to compile under Xcode 5.

However, there is a obstacle that needs modify /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/include/sys/cdefs.h before compile... Not figured out elegant solution yet.