Pass -Wl,-no-as-needed to the linker