Fixed compile against Qt 5

Still works with Qt 4, for now.