AFAIK the `--noMain` doesn't mean "don't generate `NimMain()`". You still need to `NimMain()` to boot the GC, execute top-level module code, etc.
I believe what the flag actually does is prevent `NimMain()` being called in `DllMain()`, so you have to call `NimMain()` manually.
