Restore files still needed to make autotools legacy builds work.

We should keep autotools build working for the moment.
This partially reverts commit 3c939b49eadbd1e629eab0a626c80cd71a23642d.