Partial compatibility with ruby1.9

This contains partial ruby 1.9 compatibility support, the rest has not been made compatible with ruby 1.8 but can be found at "axsh:ruby1.9".

All unittests work under ruby 1.8.