use (public?) https interface
try various versions of pkg-config if -libffi does not work