Limit the libraries pulled in when dynamic linking.

See also https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=745543
Merge pull request #83 from jelmer/pc-limit-libs

Limit the libraries pulled in when dynamic linking.