This PR fixes issue #170.
I just implemented the fix described in this issue, so it works in some cases, but maybe not for all.
Add getopt include to specrunner.cpp
I'm wary about accepting a patch that may work for some and not for others, especially on a project I really have no interest in working on anymore. I've been looking for a new maintainer for quite a while now and no one has stepped up, and the last thing I have time to do right now is deal with the fallout from a code change.