Fix QT on Mavericks