'flags' should only be set inside DSO_load() if constructing a new DSO