Fixed warnings.
Added NonAtomicReferenceCounter class.