Some super hacks to support ruby 1.9.1 in ubuntu