Fix JNI build script