Fixed compile errors in example programs.