Add support for ruby 1.9.

As I said before, I want to add support for ruby 1.9.
Please let me know if I should rebase(& squash).
Thank you.