Fix some warnings on Ruby 1.8.