64bit fixes for cocos2d 2.x