do not check libffi-devel on Redhat 6+ if not available, fix #2583