Changed some loadFile to loadResource, updated base SDK in all samples

I have changed a few loadFile calls to loadResource. The tutorial sample crashed on every loadFile call and all the supplied samples as well. Then I changed the setting for base sdk in all samples to work out of the box.