Added windows friendly getopt and getopt_long