Refs #9643.  Fixed errors and warnings.

Including Windows, Mac, Doxygen and CppCheck.