Add workaround for OS X symbol clash and AllOnes helper method.
Convert some VideoCommon stuff to BitSet.