Fixed configure script to properly detect Qt libraries with pkg-config when non default Qt installation used (e.g. set using --qtdir, QTDIR, etc.).