Turn off Windows Error Reporting for unit tests

This keeps TeamCity from hanging on a dialog box. Fixes Issue #1028