Set upper bound for constraints when built with ghc < 7.8