Make the plugin be compatible with both cocos2d-x-2.2 & cocos2d-x-3.0.