build: update C++ xpcom components to work with newer mozilla code base

(integrated from trunk branch change 106a9c8 by Todd Whiteman <toddw@activestate.com>)