Check for _WIN32 to detect Windows hosts

This patch follows the suggestion by nubcase from #137.