Made it compileable with Qt 5