Builds on Windows again (added getopt support).