[mlite] Compatibility fixes for Qt 5.