Add up-to-date autotools pieces to dmapi tests