Fixes for Qt4.