Support hooking of native library su checks.