Ruby 1.9.3

Start of work getting this running under Ruby 1.9.3.