Fix building with curl on Linux PPC and Sparc