Fix SystemThrow and error_test on Windows.