Qt UI: fix build in Mac OS X 10.9 using clang