CS fixes for dialogs on Windows.