Fixed repo for Qt5.

I made some changes, so the project can compile with Qt5.