fix ruby bindings to be compatible with curent ruby implementations fix for #279