Adds modifications to compile with Qt5