fix Issue 10711 - shared phobos library should not depend on _Dmain
Use builtin typeinfo for const(char)[] as well.
Merge pull request #2479 from quickfur/issue6210

Fix issue 6210
Merge pull request #2476 from WalterBright/fix10711

fix Issue 10711 - shared phobos library should not depend on _Dmain