Add support for previous Ruby versions.