Use -z ignore instead of --as-needed on Solaris