Tweaks to get libcairo compiling on iOS and OS X.