Fixed name mangling issues and JNI method lookup errors.