Fixed bug parsing error messages of D compiler.
Refactor out unnecessary API