Added support for Windows.

This change is backported from the gopacket project.