Fixes for IE7 (particularly not being able to modify prototypes for HTML elements/COM objects).