Use <atomic> instead of "llvm/Support/Atomic.h". Removed unused RefCounter class.