qt4: fix build on darwin (close #750)