Added error parser function for XBuild.

Might also work with MSBuild - I'll need to test it.