Fix build errors in MyPaintTiledSurface and example