Make compilable with Qt 5