Fix some Windows compile issues.

- MSVC complains if an unsigned int is cast to a size_t.
- "and" is not a valid preprocessor logical operator.

BUG=none
R=jamesr@chromium.org

Review URL: https://codereview.chromium.org/829853003