Fixed some deprecation warnings when compiling the Ruby native extension on Ruby 2.0.0.