Fixing warnings in examples.

Refs #1777.
Fix warnings in tensor_mechanics.

Refs #1777.
Give MooseEnumBase a virtual destructor.

Refs #1777.
Merge pull request #3821 from jwpeterson/fix_warnings

Fix warnings