osx: Fix missing dock menu with qt5

Qt5 Removed the qt_mac_set_dock_menu function and left no replacement.

Qt5.2 adds QMenu::setAsDockMenu() to handle this. Use that when possible. Current Gitian uses Qt5.2, so this fixes release builds.