Polyfill for Object.getPrototypeOf