Add dependency on ghc-prim for ghc-7.4.2.

d-p-tests requires GHC.Generics which is part of ghc-prim in the packages shipped with ghc-7.4.2.