Add --no-as-needed to workaround gcc bug