What about this thermostat housing? Can it be saved?

If it was mine, I'd just file it flat, restore the clearance in the undercut, and if not leaking, bolt it on as is.