fix example compilation errors