find native implementation from object prototype chain

The current object might not always have the native implementation
accessible - it might be an "extending" class in js, e.g.:

    MyWindow = function(parent) {
        this.prototype = this.__proto__ = new api.QMainWindow(parent);
    }
    var w = new MyWindow(null);
    w.show();