removed --as-needed to fix ubuntu builds