Get rid of all warnings and errors on Windows.

This increases msvc compatibility.
Maybe change len to size_t?  Or does that make MSVC complain about possible truncation / overflow in the call to String::New()?