Add libpopt

Now depends on libpopt for parsing arguments to -B and -E commands.