common: Fix broken Windows build

getopt_long() required for lib tests.