Updating makefile targets for generating tests.
Updating AC macros to be compatible with legacy versions.
Updating automake version include to work with other packages.