s3:configure: use --aѕ-needed linker option when supported