Fix compiler warnings

Refs #10492