refs #7445. Fix warnings by via win build.