Tried to link all the libraries explicitly instead
Merge pull request #55 from nilsbore/fix_apt_get

Try to link all the libraries explicitly to see if that works