Make test suite compatible with Cabal.