Fixes for ARC/other platform support

I noticed a couple of apparent bugs when porting to ARC (App Runtime for Chrome; essentially Android on ChromeOS) which I had to fix to get it to run satisfactorily. Most notably, some platforms use '/data/app-lib' instead of '/data/data/lib' to store native libraries, the getApplicationInfo().nativeLibraryDir property gives the correct path on phones running Gingerbread or higher. I don't think these changes will cause any issues on existing platforms, but I don't have a particularly diverse environment to test with.