fix compile error for xcode 5.1 and latest cocos2dx-better