Fix crash in the icon cache on exit
Only use the icon cache when Qt >= 5.9; this cache causes crashes with Qt 5.6 and 5.7 for sure, not tested with 5.9.