QCD with one compact spatial dimension