Use automake and libtool for dmapi tests.