fix compilation under VS 2013

This is essentially a copy of corresponding chromium change from:
https://codereview.chromium.org/27017003