Fix perl bindings