compile with -Werror in the end-to-end test
Init function accepts an error callback that is called when native method
cannot be registered.
Renamed field "descriptor" to "signature" to match naming in JNI API.