CB-7639 Notification.confirm() fails on windows due to multiple issues

Fixes for multiple issues described in https://issues.apache.org/jira/browse/CB-7639