Fix huge number of undefined reference errors under Linux. (Not sure where the Cairo configure changes came from, but I suspect they should be changed.)