Adds some stuff for Ruby 2.0 compat