The TD04 is a standard size turbo for subarus but before you buy be aware that the a TD04 from a Forrester has different internals to a TD04 from an Impreza.
So the turbo itself will be fine as long as you address everything else that goes with a turbo installation - intercooler, fuelling, air flow into the system boost control exhaust etc