fixed "use of undeclared identifier 'getopt'" error

Signed-off-by: Ali Akbar Panahi <panaali@gmail.com>
Merge pull request #1 from panaali/development

fixed "use of undeclared identifier 'getopt'" error