Added simple Ruby 1.8.6 compatibility.