Add ruby 1.8 compatibility

Maybe this will Just Work