Fixed build/packaging with Qt5 on Mac OSX.