build: disable -Wl,--as-needed to try and fix the build