diff --git a/rdf4h.cabal b/rdf4h.cabal
--- a/rdf4h.cabal
+++ b/rdf4h.cabal
@@ -1,5 +1,5 @@
 name:            rdf4h
-version:         1.3.1
+version:         1.3.2
 synopsis:        A library for RDF processing in Haskell
 description:     
   'RDF for Haskell' is a library for working with RDF in Haskell.
@@ -27,14 +27,6 @@
   description: Choose the new smaller, split-up base package.
   default:     False
 
-flag tests
-  description: Build the tests
-  default:     False
-
-flag hpc
-  description: Use HPC for tests
-  default:     True
-
 flag network-uri
    description: Get Network.URI from the network-uri package
    default: True
@@ -130,6 +122,8 @@
                , hashable
                , fgl
                , deepseq
+               , binary
+               , text-binary
 
   if impl(ghc < 7.6)
     build-depends: ghc-prim
diff --git a/src/Data/RDF/PatriciaTreeGraph.hs b/src/Data/RDF/PatriciaTreeGraph.hs
--- a/src/Data/RDF/PatriciaTreeGraph.hs
+++ b/src/Data/RDF/PatriciaTreeGraph.hs
@@ -1,4 +1,4 @@
-{-# LANGUAGE GeneralizedNewtypeDeriving, FlexibleInstances, BangPatterns #-}
+{-# LANGUAGE GeneralizedNewtypeDeriving, FlexibleInstances, BangPatterns, CPP #-}
 
 module Data.RDF.PatriciaTreeGraph where
 
@@ -6,7 +6,7 @@
 import Data.RDF.Query
 import Data.RDF.Types
 
-import Control.DeepSeq (NFData)
+import Control.DeepSeq (NFData(rnf))
 import qualified Data.Graph.Inductive.Graph as G
 import qualified Data.Graph.Inductive.PatriciaTree as PT
 import qualified Data.Graph.Inductive.Query.DFS as DFS
@@ -17,6 +17,15 @@
 
 newtype PatriciaTreeGraph = PatriciaTreeGraph (PT.Gr Node Node,IntMap.IntMap Node, Maybe BaseUrl, PrefixMappings)
                             deriving (Show,NFData)
+
+#if MIN_VERSION_fgl(5,5,2)
+-- fgl 7616e7135c9401e98f4c7350c9f60108ea73e456
+-- adds those instances but they are not released yet
+#else
+-- fgl-5.5.1.0 and older don't have that instance
+instance NFData (PT.Gr Node Node)
+  where rnf x = seq x ()
+#endif
 
 instance RDF PatriciaTreeGraph where
   baseUrl           = baseUrl'
