Set library dirs properly in qtxdg-config and use files.

Set link_directories() properly.
This is required to make LXQt work on FreeBSD.