Fix qt on Mavericks