Various bug fixes for Ruby-1.9 or later.
Merge pull request #164 from fukuchi/14b1a3ac42bf74c0bdf5c283c033b4db4767c234

Bug fixes of Ruby/Pango sample codes.

Patch by Kentaro Fukuchi. Thanks!!!