added build script and tidied up some JNI NDK junk