I've replaced getopt in the code base with a BSD licensed version