Fix compilation problems in example code.