Windows fixes

This branch fixes a number of Windows build issues - though not all of them, check_icmp still breaks the build.

It also implements proper support for check_ping, check_users and check_disk on Windows.