refs #6271. Fix GCC errors and warnings.