Some qt5 fixes for Windows