Source-level Qt5 compatibility for qrosscore.
Support building with Qt5.