setup libffi on compile