http://gcc.1065356.n5.nabble.com/Global-variable-in-static-library-double-free-or-corruption-error-td657603.html
http://stackoverflow.com/questions/6714046/c-linux-double-destruction-of-static-variable-linking-symbols-overlap
http://stackoverflow.com/questions/3409034/on-linux-why-does-the-destructor-run-twice-on-shared-instance-of-global-variabl