Add portable bit mask operations to BitVector.