made sources Qt5 compatible