Qt4 compatibility issues fixed