Fixed "ruby -w" warnings.

I am converting https://github.com/mvidner/ruby-dbus to use packaging_rake_tasks and it runs everything, including `rake`, with `ruby -w`.