fixed mac compilation qt4 error