Daemon: fix check log file in daemon mode
Qt UI: fix build in Mac OS X
Qt UI: fix build in Mac OS X (step 2)
Qt UI: fix build in Mac OS X (step 3)
Qt UI: fix build in Mac OS X (step 4)
Qt UI: fix build in Mac OS X (step 5)
Qt UI: fix dock related features for Mac OS X
Qt UI: fix build for Mac OS X