Change commandline option to --metalink-file
use wgint instead of int