Port to new SDK and Qt5