Fixes for Qt5.