Add command line option to not show Windows C Runtime assert dialogs

These assert dialogs hang the TeamCity build process. With this change the command line option --no-windows-assert-ui will cause them to just report to stderr with no popup dialog. This will allow me to turn back on Windows debug builds in TeamCity. 

Also:
- Added --clear-settings command line option which is useful when you settings state is hosed to the point you can't boot.
- Added hack fix to work around Issue #647 so Windows debug compiles again on TC. @ssusurus is working on the real fix

Current state of this pull has UASUnitTest removed since it currently won't compile. I'll put that back once it's fixed by Lorenz. I want to get a run through TC on all OS for final verification.