Applied patches to the qt4 versions.