Add terminal flag to fix broken build