moved getopt.h above unistd.h to prevent problems with uwin on NT