OS X: Workaround Qt5 QNAM bug

This made the sign out/sign in handling not work.

(cherry picked from commit 104cf680a60d51587fe44392351070453b18778d)