fix cairo cluck example

several small fixes to make the example work