unistd: add a preliminary implementation of getopt()
Created by: Arcterus
This seems to work, but I haven't tested it thoroughly. It would probably be a good idea to run it through some more complex situations. Do we want to implement the GNU extension to allow optional arguments?