Window focus fix for OSX app builds.