fixes for Qt 4.x