Fix g++ build

 - default virtual dtor does not work with g++
 - g++ has strict ordering for {} constructor
 - g++ does not like c style atomic
 - g++ is not very clever with {} in vector.push
 - g++ needs to explicitly link more libraries

Bug: 202522444
Test: mkdir build; cd build; cmake ../; make -j
Change-Id: Ibe807261667446ca0d87b2f41ca66166e25f6c74
3 files changed
tree: 84ee011875fe4b53537e92af8ae400fe55032fa1
  1. base/
  2. host-common/
  3. snapshot/