Fixed the sample to make it run without having cocos2d package installed