Fix compilation warning in Ruby extension