sim-events.o and sim-common.o need to depend on sim-main.h.