Qt UI: fix build in Mac OS X (step 3)