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