fixed Qt5 compat

see scikit-image#1316
this logic is ok-ish as if the `qt_compat` failed you have a version of mpl with out qt5 support anyway...