make work on ruby 1.8 and ruby 1.9