Compile and link jni