adapt requires for ruby bindings