Fix compatibility with previous GHC versions

Modify cabal file to include ghc-prim in build-depends when
GHC version is smaller than 7.6.

Signed-off-by: Spyros Trigazis <strigazi@gmail.com>