Fix check for qt5 packages

1. Do not assume that libqt5core5a is only for Ubuntu.
2. Debian has libqt5sensors5-dev too.