Writing JNI_OnLoad method