Fix compilation with Qt >= 5.2