Ruby 2.0.0

Except of a bunch of warnings that are fixed in this PR seems to be working with ruby 2.0.0