fix for Issue 11543 - multiple definition of std.regex with shared library

- Detect copy relocated ModuleInfos when checking for
  conflicting module definitions.