Fix compilation with Qt <5.4