Fix compiler warnings. Refs #9026.