Make the rbtree gem work with Ruby 2.0, fix compilation warnings

Hi there,

the current `rbtree` gem doesn’t install under Ruby 2.0 as the new RubyGems enforces C extensions to be placed in the `ext/` subdirectory. I also fixed all the compilation warnings regarding inline declarations and other things.

Vale,
Quintus