Address fallout from -Wsign-conversion work on Windows
Some Windows users builds were broken after a0d60be. This change
addresses the lingering -Wsign-conversion issues with those platforms
by adding some missing static_cast calls as needed.
Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>