fixed #1620: Invoking localStorageFree in the destructor of ScriptingCore. Added header file to cocos-ext.h