Change to Qt5 all the server + common code