Update Mod for proper deletion semantics

Mods must export a "DeleteMod" method taking an IMod* and returning
void, whose purpose is to delete the mod (provided it is the correct
type) in preparation for library closing.