jni.setup: fixes for cross-compilation

Add requirement for environment variable NDK_LIBDIR, which should
contain libraries needed for linking against arm binaries.

Remove -libjvm from compile command line when compiling for the target.
Add emacs mode line for .meta and .setup
jni needs foreigners
Merge branch 'master' into jim