Added support for Windows.

This change is backported from the gopacket project.
Merge pull request #22 from packetbeat/master

Added support for Windows.