fix examples to compile