Add extra settings to LIBS.

Fixes a build error when Qt is installed in a nonstandard location.