Fix compilation for examples