Added methods that are missing in certain cocos2d-x versions.