fixes for cocos2dx and Android L