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

- Detect copy relocated ModuleInfos when checking for
  conflicting module definitions.
Merge pull request #791 from MartinNowak/fix11543

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