Fix PyQt4&5 support.