add FFI declarations for full JNI API