Fixed compile error with Qt<5.1