Fixed problems with deploying on Windows due to recent changes for Qt5.