add the support for win32

getopt.c is almost a copy from android project's bionic/libc/unistd/getopt_long.c.
i don't implement the localtime function, and the getuid and seteuid is fake implementation.