Fix error message processing on Windows.