Fix build when using old Cairo