JNIF bugfix: take dlopen error reasons from dlerror, not errno.