Update JNI_LIBRARIES after JNI was found.