Add support for --with/--without libsodium and --with/--without pgm
command line options.