Bug 941296 - Fix non-unified build. r=bustage CLOSED TREE

We need to include a headers defining nsrefcnt and NS_IsMainThread(),
and make sure we reference the CMLinker versions of the CoreMedia
functions rather than the system ones.