Inline all template methods to avoid dllimport/export issues
with some mingw.
Change dllimport/export to only include out of line
methods of SingletonUntyped.
In some cases the license-identification header was missing,
so I added that as well. Replaced the remaining headers that
specifically identified "Versions 3.13.7 and higher".
Makefiles and the build system were deliberately excluded.