port helpers to the win32

I hope influxdb can be ported to win32 platform, I have more pull request, which is one of。