Qt UI: fix build for Mac OS X