[Cleanup] Remove useless static qualifier from local variable
[Buildsystem] Mark singleton accessor methods with DUNE_EXPORT

This should resolve hard-to-trace link and runtime problems on a
number of developer systems that are related to the linker failing to
merge multiple copies of static data from different DSOs.