Most exegetes don't believe that Jesus said anything of the sort about marriage.  It's most likely that these words were edited backwards into the text to give them the authority of Jesus.

Even so, marriage in Jesus' day was a very different from the institution of our present day, or when the church codified marriage as a sacrament centuries later at the Council of Trent.