libffi: backport incorrect detection of selinux