Add support to make legacy interface optional
If a distribution has migrated all applications over to the modern interface they can compile without the legacy interface.
I think it will be a while until we flip the default "upstream", and even longer for us to "drop it". But this lays the plumbing for all that later.