Add JNI code to build system