Add --no-as-needed linker argument to restore previous default behavior

New versions of gcc in Ubuntu have set the --as-needed argument as default.