Get rid of all warnings and errors on Windows.

This increases msvc compatibility.
Are you sure? As mentioned in a previous comment, Node 0.6 uses `int`, so then downcasting would happen when calling the v8 function.