Fix example compilation problems