To Fix compile errors for examples.