Fixed use of some deprecated autotools macros.

Without these changes bootstraping fails with newer autotools.