fixed Linux build error: use system 'getopt.h' instead of the one included here (for Windows)