eal/windows: add getopt implementation