Add missing const cast for setup_term
https://github.com/fish-shell/fish-shell/issues/1142