Fix error message processing on Windows.
Merge pull request #329 from scturtle/master

Fix error message processing on Windows.