Adds libffi support as translated from https://github.com/mfenniak/heroku-buildpack-python-libffi/blob/master/bin/steps/libffi.