Update libffi to 3.1

Update libffi from 3.0.13 to 3.1