Fix for compiler warnings on Windows. refs #1964