Fix JNI for C instead of C++

(because apparently there is a significant difference...)
Merge pull request #10 from TheBlueMatt/master

Fix JNI for C instead of C++