jni: fix build

Contrib path moved, and linking flags changed.

Refs #56330
3 files changed