fix: use correct casts to/from HANDLE/int (#1766)
fix: use correct casts to/from HANDLE/int (#1766)

Silences a ton of warnings with MSVC
voodootikigod/node-serialport,node-serialport/node-serialport,node-serialport/node-serialport,EmergingTechnologyAdvisors/node-serialport,EmergingTechnologyAdvisors/node-serialport,EmergingTechnologyAdvisors/node-serialport,node-serialport/node-serialport,EmergingTechnologyAdvisors/node-serialport,EmergingTechnologyAdvisors/node-serialport,voodootikigod/node-serialport,voodootikigod/node-serialport,voodootikigod/node-serialport,node-serialport/node-serialport,node-serialport/node-serialport