fixed "use of undeclared identifier 'getopt'" error

Signed-off-by: Ali Akbar Panahi <panaali@gmail.com>