Phonon doesn't exist in Qt5.
QGL::setPreferredPaintEngine() doesn't exist in Qt5.
Explicitly include various headers which are no longer included by other headers in Qt5.
Change deprecated functions to versions that work in Qt5.