Add default libraries to the list if the pkg-config lookup fails

Previously, the default libraries would only be used if pkg-config
itself was not installed.  Now they are also used if pkg-config works
but can not find the requested package.

Fixes #777.