Fix build with Cairo < 1.12