to TerminalViewPrefs.h. I have to do that every time I compile Terminal.app, too. It's a small nuance but Terminal hasn't been updated for years, so it's expected that it doesn't work out of the box anymore.
That include should allow you to build Terminal. There's still going to be a bunch of warnings, but compilation will still work and you'll have a working app.