Fix warnings in some examples.
Use libmesh_error_msg() where appropriate.