Fixed compilation error on older versions of GHC