Qt UI: fix build in Mac OS X