Added support for getopt on Linux