QCD corrections to the Drell-Yan mechanism and the pion structure function