Use -Wl,--as-needed for the link to appease dpkg-shlibdebs