Needed changes for cocos2d-x 3.X on android.

These are the changes I needed to use app42 SDK with cocos 3.X branch, and build for android.