Adding COCOS2D_DEBUG=1 for sample projects.
issue #1683: Fixing absolute path check for Android.
issue #1683: Making CCApplication::setResourceRootPath deprecated.