Issue #11729: Backport commit bff052d9 from libffi upstream in order to fix
a ctypes build failure with clang.
- Issue #17041: Fix testing when Python is configured with the
  --without-doc-strings option.
Remove trailing whitespaces in cStringIO.h.
Fix skip conditions in some docstings tests.