workaround for multithreaded static initialisation on windows.