Fixed example compile errors