Fix qt4 on Mavericks