The technique used is a little different, but the
construction/destruction of global objects is more or less built into
the dynamic loader. (Even under Windows, there's no need to go through
DllMain. The global objects will be constructed/destructed correctly
anyway.)