Fix Ruby 1.8.5 compatibility.
Fix compilation warning