simulator: update code for new component initialization support on mingw

note that simulator can be built with gcc, so it may be necessary to add omponent initialization  support  for gcc.