Fix plugin-x make it work with the latest cocos2d-x

1. Fix the Xcode build for plugin-x
2. Fix the Android build for plugin-x