Crudely patch around the deprecation of Mozilla's Components object.