Modify compile script for supporting iOS 5.0