[HQ] Add '-Wl,--as-needed' option using autogen.sh