Fix building with curl support on SPARC