How do I prevent the "static initialization order fiasco"?