node: fix VC++ warning C4244

Fixes several VC++ C4244 warnings