workaround warning of non-constant static initializer

warning appears when compiling with mingw32