Set libffi flags for ctypes build.