Fix JNI for C instead of C++

(because apparently there is a significant difference...)