Link against all needed libaries since binutils may not recursively add them