refs #8371. Build on windows and fix warnings.