include library dependencies explicitly

This is necessary for more recent versions of Clang, e.g., on Debian
unstable.
Merge pull request #36 from brightray/linux

include library dependencies explicitly