am 611cdccd: Add a new unit test that checks that the static C++ constructors of shared libraries and dynamic executables are called only once, and in the correct order.

Merge commit '611cdccd9690a9083816f6d4746e998d58250a86'

* commit '611cdccd9690a9083816f6d4746e998d58250a86':
  Add a new unit test that checks that the static C++ constructors of