Add ruby 2.2 compatibility.