Fix error message processing on Windows.

Just as explained in #301.