Include the netmask when returning information about the OS network
This commit provides implementations for windows and those unix platforms
AIX was not implemented because it requires the use ioctls and I do not
have an AIX development/test environment. The windows code was developed
using mingw on winxp as I do not have access to visual studio.
Tested on darwin (ipv4/ipv6) and winxp (ipv4 only). Needs testing on
newer windows using ipv6 and other unix platforms.
This commit depends on joyent/libuv#705 in order to compile. The libuv
changes are not included here as I assume dependencies are incorporated
under a separate process.
This is a partial fix for #3765.