Fix broken build with ./configure --without-cairo