Rhino/RingoJS compatibility fix for lacking __proto__ feature / Object.setPrototypeOf polyfill