NXP-12815: Fix segmentation fault at Qt exit under Ubuntu