add ndk support (jni directory) and fix compilation/link error on build ...

...for android