improved handling of Qt5 in non-standard locations