avoid rebuilding stuff before tests.

- will work only with cabal version > 1.20