Qt UI: few fixes for Mac OS X:
* Now program is minimized into dock instead of system tray
  when close or hide button is clicked. (issue 1351)
* Now program is minimized into dock instead of system tray
  on start if related option is turned on. (issue 1270)