script to generate so for JNI