Fix for rpi
Merge pull request #1 from kaihendry/getopt

Fix for rpi