Revise Thrift STDOUT + STDERR line processing
The Thrift compiler sends warnings to STDOUT and errors to STDERR. We
now build a single $lines array combining the lines from both output
streams. Annoyingly, errors are reporting using two lines, so we perform
a small amount of preprocessing so we can scan $lines using a single
regular expression.
Also include some example text to semi-document the regular expression.