Fix some compiler warnings.

Refs #5823