Start fixing up the port files for Qt5