fix OSX build

after my commit 827c46e "fdo#82577: Handle Window"

Change-Id: I945849d7b95988162785eea6831da0f761514bb4