Simplify/generalize copying of libffi files.