This crashes when you compile a library, because obj_write_deferred accesses Module::ident which is NULL.
```d
    Identifier *id = Lexer::idPool("__entrypoint");
    Module *m = new Module("__entrypoint.d", id, 0, 0);
```