GHC version check added to make package buildable under GHC 7.8