Fix Enumerator.new deprecation warning. Should work with 1.8.7+.