Fix pkg-config dependencies for Qt5

For Qt5, these have the major version in their name, e.g. Qt5Core