Set libffi variables for both buildtime and runtime.