Fixed problems with deployment on Macintosh with Qt 5.